package top.chmin.project.cloud.sys.code;

import java.util.List;
import top.chmin.project.cloud.common.Page;
import org.springframework.web.bind.annotation.RestController;
import jakarta.annotation.Resource;



/**
 * chmin
 * 2024-01-26 14:00:51
 * cloud-code
 */
@RestController
public class CodeController implements
/* append $controllerSelectOptionRestAppender$ */
        CodeSaveRest,
        CodeSelectRest,
        CodeUpdateRest,
        CodeDeleteRest,
        CodePageRest {

    @Resource
    private CodeService codeService;

    @Override
    public int save(CodeSaveRest.P p) {
        return codeService.save(p);
    }

    @Override
    public CodeSelectRest.R select(CodeSelectRest.P p) {
        return codeService.select(p);
    }

    @Override
    public int update(CodeUpdateRest.P p) {
        return codeService.update(p);
    }

    @Override
    public int delete(CodeDeleteRest.P p) {
        return codeService.delete(p);
    }

    @Override
    public Page<CodePageRest.R> page(CodePageRest.P p) {
        return codeService.page(p);
    }
    /* append $controllerSelectOptionMethodAppender$ */
}
